package com.xiaobaibai.threadPool;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xiaobaibai.common.UserCommon;
import com.xiaobaibai.entity.BargainRecording;
import com.xiaobaibai.entity.BargainUser;
import com.xiaobaibai.entity.User;
import com.xiaobaibai.service.IBargainRecordingService;
import com.xiaobaibai.service.IBargainUserService;
import com.xiaobaibai.service.IUserService;
import org.apache.commons.lang3.RandomUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class MyThreadPoolUnit {

    public static ThreadPoolExecutor threadPoolExecutor=
            new ThreadPoolExecutor(2,6,180,
                    TimeUnit.SECONDS,new LinkedBlockingQueue<>(100),new ThreadPoolExecutor.AbortPolicy());

}
